<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hashcat-3.201: H:/TDDownload/Hashcat v3.20/hashcat-3.201/src/hlfmt.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">hashcat-3.201
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_06fe396e3e859736df6d43ad26baa72e.html">hashcat-3.201</a></li><li class="navelem"><a class="el" href="dir_9ce3dfc5d638c7f8b2c4ec0f6627771b.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">hlfmt.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;common.h&quot;</code><br />
<code>#include &quot;types.h&quot;</code><br />
<code>#include &quot;memory.h&quot;</code><br />
<code>#include &quot;filehandling.h&quot;</code><br />
<code>#include &quot;hlfmt.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for hlfmt.c:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c__incl.gif" border="0" usemap="#_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2hlfmt_8c" alt=""/></div>
<map name="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2hlfmt_8c" id="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2hlfmt_8c">
<area shape="rect"  title=" " alt="" coords="161,5,324,61"/>
<area shape="rect"  title=" " alt="" coords="5,109,88,136"/>
<area shape="rect"  title=" " alt="" coords="113,109,178,136"/>
<area shape="rect"  title=" " alt="" coords="203,109,283,136"/>
<area shape="rect"  title=" " alt="" coords="307,109,405,136"/>
<area shape="rect"  title=" " alt="" coords="429,109,491,136"/>
</map>
</div>
</div>
<p><a href="hlfmt_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac97115099153951942184c29c3664735"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#ac97115099153951942184c29c3664735">hlfmt_hash_hashcat</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</td></tr>
<tr class="separator:ac97115099153951942184c29c3664735"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b359449a18f54515535009c60e14a7f"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a6b359449a18f54515535009c60e14a7f">hlfmt_user_hashcat</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</td></tr>
<tr class="separator:a6b359449a18f54515535009c60e14a7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae92356f9222bfba04fd8f58625e9f6a7"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#ae92356f9222bfba04fd8f58625e9f6a7">hlfmt_detect_pwdump</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len)</td></tr>
<tr class="separator:ae92356f9222bfba04fd8f58625e9f6a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfd53a9b54fcfd2c036e62fd668fd8f2"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#acfd53a9b54fcfd2c036e62fd668fd8f2">hlfmt_hash_pwdump</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</td></tr>
<tr class="separator:acfd53a9b54fcfd2c036e62fd668fd8f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed2c9a8db6f2c69d23a45c254b22b50e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#aed2c9a8db6f2c69d23a45c254b22b50e">hlfmt_user_pwdump</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</td></tr>
<tr class="separator:aed2c9a8db6f2c69d23a45c254b22b50e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00dd7a5c2178c1d0ea36808a0bda328f"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a00dd7a5c2178c1d0ea36808a0bda328f">hlfmt_detect_passwd</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len)</td></tr>
<tr class="separator:a00dd7a5c2178c1d0ea36808a0bda328f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f6f3eda28936e88abd64a5c6022584f"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a7f6f3eda28936e88abd64a5c6022584f">hlfmt_hash_passwd</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</td></tr>
<tr class="separator:a7f6f3eda28936e88abd64a5c6022584f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82b46186ed83740b2ae1d779e87e7f0f"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a82b46186ed83740b2ae1d779e87e7f0f">hlfmt_user_passwd</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</td></tr>
<tr class="separator:a82b46186ed83740b2ae1d779e87e7f0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7db114a62ab431912937f7f90569ea7a"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a7db114a62ab431912937f7f90569ea7a">hlfmt_detect_shadow</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len)</td></tr>
<tr class="separator:a7db114a62ab431912937f7f90569ea7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c499fb565a6c7bc960f77d3ba528c9a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a8c499fb565a6c7bc960f77d3ba528c9a">hlfmt_hash_shadow</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</td></tr>
<tr class="separator:a8c499fb565a6c7bc960f77d3ba528c9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb6b2e43aca94a4a65d73457e54cc5a1"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#adb6b2e43aca94a4a65d73457e54cc5a1">hlfmt_user_shadow</a> (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</td></tr>
<tr class="separator:adb6b2e43aca94a4a65d73457e54cc5a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad678cb550432d8054dd4ea068986ffb0"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#ad678cb550432d8054dd4ea068986ffb0">strhlfmt</a> (const u32 hashfile_format)</td></tr>
<tr class="separator:ad678cb550432d8054dd4ea068986ffb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89874d1c6907119196e32021b17c68e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a89874d1c6907119196e32021b17c68e7">hlfmt_hash</a> (hashcat_ctx_t *hashcat_ctx, u32 hashfile_format, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</td></tr>
<tr class="separator:a89874d1c6907119196e32021b17c68e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a637d56e649022fd1a4341a47f63d1f08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a637d56e649022fd1a4341a47f63d1f08">hlfmt_user</a> (hashcat_ctx_t *hashcat_ctx, u32 hashfile_format, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</td></tr>
<tr class="separator:a637d56e649022fd1a4341a47f63d1f08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62181d9bee81afde6e22e0056d814de0"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a62181d9bee81afde6e22e0056d814de0">hlfmt_detect</a> (hashcat_ctx_t *hashcat_ctx, FILE *fp, u32 max_check)</td></tr>
<tr class="separator:a62181d9bee81afde6e22e0056d814de0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:af2f2d9ece5564e0886e0961219fd4cae"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#af2f2d9ece5564e0886e0961219fd4cae">HLFMT_TEXT_HASHCAT</a> [] = &quot;native hashcat&quot;</td></tr>
<tr class="separator:af2f2d9ece5564e0886e0961219fd4cae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa265e7d2d5dfb8108d2ddad5706be92a"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#aa265e7d2d5dfb8108d2ddad5706be92a">HLFMT_TEXT_PWDUMP</a> [] = &quot;pwdump&quot;</td></tr>
<tr class="separator:aa265e7d2d5dfb8108d2ddad5706be92a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55ed1b269f4bb48724c05dd34840e565"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a55ed1b269f4bb48724c05dd34840e565">HLFMT_TEXT_PASSWD</a> [] = &quot;passwd&quot;</td></tr>
<tr class="separator:a55ed1b269f4bb48724c05dd34840e565"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0a96583f2442346bc57cb0207d5effa"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#ab0a96583f2442346bc57cb0207d5effa">HLFMT_TEXT_SHADOW</a> [] = &quot;shadow&quot;</td></tr>
<tr class="separator:ab0a96583f2442346bc57cb0207d5effa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85a7a2915fc210bcad12a379e6978458"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a85a7a2915fc210bcad12a379e6978458">HLFMT_TEXT_DCC</a> [] = &quot;DCC&quot;</td></tr>
<tr class="separator:a85a7a2915fc210bcad12a379e6978458"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5852bcf21ecf96bc1a5655217631a4a5"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a5852bcf21ecf96bc1a5655217631a4a5">HLFMT_TEXT_DCC2</a> [] = &quot;DCC 2&quot;</td></tr>
<tr class="separator:a5852bcf21ecf96bc1a5655217631a4a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeac959653fda3161bc9df8e7d9cc916"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#aaeac959653fda3161bc9df8e7d9cc916">HLFMT_TEXT_NETNTLM1</a> [] = &quot;NetNTLMv1&quot;</td></tr>
<tr class="separator:aaeac959653fda3161bc9df8e7d9cc916"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41ea1aa4f4d7b762aebf527d624b52e5"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a41ea1aa4f4d7b762aebf527d624b52e5">HLFMT_TEXT_NETNTLM2</a> [] = &quot;NetNTLMv2&quot;</td></tr>
<tr class="separator:a41ea1aa4f4d7b762aebf527d624b52e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50b49f2997a098839896f77216557cc4"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a50b49f2997a098839896f77216557cc4">HLFMT_TEXT_NSLDAP</a> [] = &quot;nsldap&quot;</td></tr>
<tr class="separator:a50b49f2997a098839896f77216557cc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d889115edb7dded70942e4f00fe9a1d"><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hlfmt_8c.html#a9d889115edb7dded70942e4f00fe9a1d">HLFMT_TEXT_NSLDAPS</a> [] = &quot;nsldaps&quot;</td></tr>
<tr class="separator:a9d889115edb7dded70942e4f00fe9a1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a62181d9bee81afde6e22e0056d814de0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62181d9bee81afde6e22e0056d814de0">&#9670;&nbsp;</a></span>hlfmt_detect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 hlfmt_detect </td>
          <td>(</td>
          <td class="paramtype">hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>max_check</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00336">336</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;{</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;  <span class="keyword">const</span> hashconfig_t *hashconfig = hashcat_ctx-&gt;hashconfig;</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;  <span class="comment">// Exception: those formats are wrongly detected as HLFMT_SHADOW, prevent it</span></div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;  <span class="keywordflow">if</span> (hashconfig-&gt;hash_mode == 5300) <span class="keywordflow">return</span> HLFMT_HASHCAT;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;  <span class="keywordflow">if</span> (hashconfig-&gt;hash_mode == 5400) <span class="keywordflow">return</span> HLFMT_HASHCAT;</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;  u32 *formats_cnt = (u32 *) <a class="code" href="memory_8c.html#aab4c3019b442ae19027f3e773214416b">hccalloc</a> (HLFMTS_CNT, <span class="keyword">sizeof</span> (u32));</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;  u32 num_check = 0;</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;  <span class="keywordtype">char</span> *line_buf = (<span class="keywordtype">char</span> *) <a class="code" href="memory_8c.html#aac788cecd4f6c2a1524456f4a5db7cdc">hcmalloc</a> (HCBUFSIZ_LARGE);</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;  <span class="keywordflow">while</span> (!feof (fp))</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;  {</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="keywordtype">int</span> line_len = <a class="code" href="filehandling_8c.html#a0a4a7adc4b47c4ad1c4834d9fb4f6a12">fgetl</a> (fp, line_buf);</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="keywordflow">if</span> (line_len == 0) <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="hlfmt_8c.html#ae92356f9222bfba04fd8f58625e9f6a7">hlfmt_detect_pwdump</a> (hashcat_ctx, line_buf, line_len)) formats_cnt[HLFMT_PWDUMP]++;</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="hlfmt_8c.html#a00dd7a5c2178c1d0ea36808a0bda328f">hlfmt_detect_passwd</a> (hashcat_ctx, line_buf, line_len)) formats_cnt[HLFMT_PASSWD]++;</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="hlfmt_8c.html#a7db114a62ab431912937f7f90569ea7a">hlfmt_detect_shadow</a> (hashcat_ctx, line_buf, line_len)) formats_cnt[HLFMT_SHADOW]++;</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">if</span> (num_check == max_check) <span class="keywordflow">break</span>;</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    num_check++;</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;  }</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;  <a class="code" href="memory_8c.html#ad8ba3dcf1734b1d2c8679600f0f0c3c9">hcfree</a> (line_buf);</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;  u32 hashlist_format = HLFMT_HASHCAT;</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;  <span class="keywordflow">for</span> (u32 i = 1; i &lt; HLFMTS_CNT; i++)</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;  {</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <span class="keywordflow">if</span> (formats_cnt[i - 1] &gt;= formats_cnt[i]) <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    hashlist_format = i;</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;  }</div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;  free (formats_cnt);</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;  <span class="keywordflow">return</span> hashlist_format;</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;}</div><div class="ttc" id="memory_8c_html_ad8ba3dcf1734b1d2c8679600f0f0c3c9"><div class="ttname"><a href="memory_8c.html#ad8ba3dcf1734b1d2c8679600f0f0c3c9">hcfree</a></div><div class="ttdeci">void hcfree(void *ptr)</div><div class="ttdef"><b>Definition:</b> <a href="memory_8c_source.html#l00071">memory.c:71</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a7db114a62ab431912937f7f90569ea7a"><div class="ttname"><a href="hlfmt_8c.html#a7db114a62ab431912937f7f90569ea7a">hlfmt_detect_shadow</a></div><div class="ttdeci">static int hlfmt_detect_shadow(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00269">hlfmt.c:269</a></div></div>
<div class="ttc" id="memory_8c_html_aab4c3019b442ae19027f3e773214416b"><div class="ttname"><a href="memory_8c.html#aab4c3019b442ae19027f3e773214416b">hccalloc</a></div><div class="ttdeci">void * hccalloc(const size_t nmemb, const size_t sz)</div><div class="ttdef"><b>Definition:</b> <a href="memory_8c_source.html#l00010">memory.c:10</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a00dd7a5c2178c1d0ea36808a0bda328f"><div class="ttname"><a href="hlfmt_8c.html#a00dd7a5c2178c1d0ea36808a0bda328f">hlfmt_detect_passwd</a></div><div class="ttdeci">static int hlfmt_detect_passwd(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00186">hlfmt.c:186</a></div></div>
<div class="ttc" id="memory_8c_html_aac788cecd4f6c2a1524456f4a5db7cdc"><div class="ttname"><a href="memory_8c.html#aac788cecd4f6c2a1524456f4a5db7cdc">hcmalloc</a></div><div class="ttdeci">void * hcmalloc(const size_t sz)</div><div class="ttdef"><b>Definition:</b> <a href="memory_8c_source.html#l00024">memory.c:24</a></div></div>
<div class="ttc" id="hlfmt_8c_html_ae92356f9222bfba04fd8f58625e9f6a7"><div class="ttname"><a href="hlfmt_8c.html#ae92356f9222bfba04fd8f58625e9f6a7">hlfmt_detect_pwdump</a></div><div class="ttdeci">static int hlfmt_detect_pwdump(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00089">hlfmt.c:89</a></div></div>
<div class="ttc" id="filehandling_8c_html_a0a4a7adc4b47c4ad1c4834d9fb4f6a12"><div class="ttname"><a href="filehandling_8c.html#a0a4a7adc4b47c4ad1c4834d9fb4f6a12">fgetl</a></div><div class="ttdeci">int fgetl(FILE *fp, char *line_buf)</div><div class="ttdef"><b>Definition:</b> <a href="filehandling_8c_source.html#l00040">filehandling.c:40</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="filehandling_8c_source.html#l00040">fgetl()</a>, <a class="el" href="memory_8c_source.html#l00010">hccalloc()</a>, <a class="el" href="memory_8c_source.html#l00071">hcfree()</a>, <a class="el" href="memory_8c_source.html#l00024">hcmalloc()</a>, <a class="el" href="hlfmt_8c_source.html#l00186">hlfmt_detect_passwd()</a>, <a class="el" href="hlfmt_8c_source.html#l00089">hlfmt_detect_pwdump()</a>, and <a class="el" href="hlfmt_8c_source.html#l00269">hlfmt_detect_shadow()</a>.</p>

<p class="reference">Referenced by <a class="el" href="hashes_8c_source.html#l00442">hashes_init_stage1()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a62181d9bee81afde6e22e0056d814de0_cgraph.gif" border="0" usemap="#hlfmt_8c_a62181d9bee81afde6e22e0056d814de0_cgraph" alt=""/></div>
<map name="hlfmt_8c_a62181d9bee81afde6e22e0056d814de0_cgraph" id="hlfmt_8c_a62181d9bee81afde6e22e0056d814de0_cgraph">
<area shape="rect"  title=" " alt="" coords="5,157,99,184"/>
<area shape="rect"  href="filehandling_8c.html#a0a4a7adc4b47c4ad1c4834d9fb4f6a12" title=" " alt="" coords="197,5,244,32"/>
<area shape="rect"  href="memory_8c.html#aab4c3019b442ae19027f3e773214416b" title=" " alt="" coords="185,56,256,83"/>
<area shape="rect"  href="memory_8c.html#ad8ba3dcf1734b1d2c8679600f0f0c3c9" title=" " alt="" coords="192,107,249,133"/>
<area shape="rect"  href="memory_8c.html#aac788cecd4f6c2a1524456f4a5db7cdc" title=" " alt="" coords="183,157,258,184"/>
<area shape="rect"  href="hlfmt_8c.html#a00dd7a5c2178c1d0ea36808a0bda328f" title=" " alt="" coords="149,208,293,235"/>
<area shape="rect"  href="hlfmt_8c.html#ae92356f9222bfba04fd8f58625e9f6a7" title=" " alt="" coords="147,259,295,285"/>
<area shape="rect"  href="hlfmt_8c.html#a7db114a62ab431912937f7f90569ea7a" title=" " alt="" coords="149,309,293,336"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a62181d9bee81afde6e22e0056d814de0_icgraph.gif" border="0" usemap="#hlfmt_8c_a62181d9bee81afde6e22e0056d814de0_icgraph" alt=""/></div>
<map name="hlfmt_8c_a62181d9bee81afde6e22e0056d814de0_icgraph" id="hlfmt_8c_a62181d9bee81afde6e22e0056d814de0_icgraph">
<area shape="rect"  title=" " alt="" coords="639,5,732,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a00dd7a5c2178c1d0ea36808a0bda328f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00dd7a5c2178c1d0ea36808a0bda328f">&#9670;&nbsp;</a></span>hlfmt_detect_passwd()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int hlfmt_detect_passwd </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00186">186</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;{</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;  <span class="keywordtype">int</span> sep_cnt = 0;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;  <span class="keywordtype">char</span> sep5_first = 0;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;  <span class="keywordtype">char</span> sep6_first = 0;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; line_len; i++)</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;  {</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <span class="keywordflow">if</span> (line_buf[i] == <span class="charliteral">&#39;:&#39;</span>)</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    {</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;      sep_cnt++;</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;      <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    }</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <span class="keywordflow">if</span> (sep_cnt == 5) <span class="keywordflow">if</span> (sep5_first == 0) sep5_first = line_buf[i];</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordflow">if</span> (sep_cnt == 6) <span class="keywordflow">if</span> (sep6_first == 0) sep6_first = line_buf[i];</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;  }</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;  <span class="keywordflow">if</span> ((sep_cnt == 6) &amp;&amp; ((sep5_first == <span class="charliteral">&#39;/&#39;</span>) || (sep6_first == <span class="charliteral">&#39;/&#39;</span>))) <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00336">hlfmt_detect()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a00dd7a5c2178c1d0ea36808a0bda328f_icgraph.gif" border="0" usemap="#hlfmt_8c_a00dd7a5c2178c1d0ea36808a0bda328f_icgraph" alt=""/></div>
<map name="hlfmt_8c_a00dd7a5c2178c1d0ea36808a0bda328f_icgraph" id="hlfmt_8c_a00dd7a5c2178c1d0ea36808a0bda328f_icgraph">
<area shape="rect"  title=" " alt="" coords="780,5,924,32"/>
<area shape="rect"  href="hlfmt_8c.html#a62181d9bee81afde6e22e0056d814de0" title=" " alt="" coords="639,5,732,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="ae92356f9222bfba04fd8f58625e9f6a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae92356f9222bfba04fd8f58625e9f6a7">&#9670;&nbsp;</a></span>hlfmt_detect_pwdump()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int hlfmt_detect_pwdump </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00089">89</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;{</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <span class="keywordtype">int</span> sep_cnt = 0;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  <span class="keywordtype">int</span> sep2_len = 0;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <span class="keywordtype">int</span> sep3_len = 0;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; line_len; i++)</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  {</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">if</span> (line_buf[i] == <span class="charliteral">&#39;:&#39;</span>)</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;      sep_cnt++;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;      <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    }</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordflow">if</span> (sep_cnt == 2) sep2_len++;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordflow">if</span> (sep_cnt == 3) sep3_len++;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <span class="keywordflow">if</span> ((sep_cnt == 6) &amp;&amp; ((sep2_len == 32) || (sep3_len == 32))) <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00336">hlfmt_detect()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_ae92356f9222bfba04fd8f58625e9f6a7_icgraph.gif" border="0" usemap="#hlfmt_8c_ae92356f9222bfba04fd8f58625e9f6a7_icgraph" alt=""/></div>
<map name="hlfmt_8c_ae92356f9222bfba04fd8f58625e9f6a7_icgraph" id="hlfmt_8c_ae92356f9222bfba04fd8f58625e9f6a7_icgraph">
<area shape="rect"  title=" " alt="" coords="780,5,928,32"/>
<area shape="rect"  href="hlfmt_8c.html#a62181d9bee81afde6e22e0056d814de0" title=" " alt="" coords="639,5,732,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a7db114a62ab431912937f7f90569ea7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7db114a62ab431912937f7f90569ea7a">&#9670;&nbsp;</a></span>hlfmt_detect_shadow()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int hlfmt_detect_shadow </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00269">269</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;{</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;  <span class="keywordtype">int</span> sep_cnt = 0;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; line_len; i++)</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;  {</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="keywordflow">if</span> (line_buf[i] == <span class="charliteral">&#39;:&#39;</span>) sep_cnt++;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;  }</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;  <span class="keywordflow">if</span> (sep_cnt == 8) <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00336">hlfmt_detect()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a7db114a62ab431912937f7f90569ea7a_icgraph.gif" border="0" usemap="#hlfmt_8c_a7db114a62ab431912937f7f90569ea7a_icgraph" alt=""/></div>
<map name="hlfmt_8c_a7db114a62ab431912937f7f90569ea7a_icgraph" id="hlfmt_8c_a7db114a62ab431912937f7f90569ea7a_icgraph">
<area shape="rect"  title=" " alt="" coords="780,5,924,32"/>
<area shape="rect"  href="hlfmt_8c.html#a62181d9bee81afde6e22e0056d814de0" title=" " alt="" coords="639,5,732,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a89874d1c6907119196e32021b17c68e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89874d1c6907119196e32021b17c68e7">&#9670;&nbsp;</a></span>hlfmt_hash()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hlfmt_hash </td>
          <td>(</td>
          <td class="paramtype">hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>hashfile_format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>hashbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>hashbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00314">314</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;{</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;  <span class="keywordflow">switch</span> (hashfile_format)</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;  {</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">case</span> HLFMT_HASHCAT: <a class="code" href="hlfmt_8c.html#ac97115099153951942184c29c3664735">hlfmt_hash_hashcat</a> (hashcat_ctx, line_buf, line_len, hashbuf_pos, hashbuf_len); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    <span class="keywordflow">case</span> HLFMT_PWDUMP:  <a class="code" href="hlfmt_8c.html#acfd53a9b54fcfd2c036e62fd668fd8f2">hlfmt_hash_pwdump</a>  (hashcat_ctx, line_buf, line_len, hashbuf_pos, hashbuf_len); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    <span class="keywordflow">case</span> HLFMT_PASSWD:  <a class="code" href="hlfmt_8c.html#a7f6f3eda28936e88abd64a5c6022584f">hlfmt_hash_passwd</a>  (hashcat_ctx, line_buf, line_len, hashbuf_pos, hashbuf_len); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="keywordflow">case</span> HLFMT_SHADOW:  <a class="code" href="hlfmt_8c.html#a8c499fb565a6c7bc960f77d3ba528c9a">hlfmt_hash_shadow</a>  (hashcat_ctx, line_buf, line_len, hashbuf_pos, hashbuf_len); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;  }</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;}</div><div class="ttc" id="hlfmt_8c_html_acfd53a9b54fcfd2c036e62fd668fd8f2"><div class="ttname"><a href="hlfmt_8c.html#acfd53a9b54fcfd2c036e62fd668fd8f2">hlfmt_hash_pwdump</a></div><div class="ttdeci">static void hlfmt_hash_pwdump(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00114">hlfmt.c:114</a></div></div>
<div class="ttc" id="hlfmt_8c_html_ac97115099153951942184c29c3664735"><div class="ttname"><a href="hlfmt_8c.html#ac97115099153951942184c29c3664735">hlfmt_hash_hashcat</a></div><div class="ttdeci">static void hlfmt_hash_hashcat(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00025">hlfmt.c:25</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a8c499fb565a6c7bc960f77d3ba528c9a"><div class="ttname"><a href="hlfmt_8c.html#a8c499fb565a6c7bc960f77d3ba528c9a">hlfmt_hash_shadow</a></div><div class="ttdeci">static void hlfmt_hash_shadow(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00283">hlfmt.c:283</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a7f6f3eda28936e88abd64a5c6022584f"><div class="ttname"><a href="hlfmt_8c.html#a7f6f3eda28936e88abd64a5c6022584f">hlfmt_hash_passwd</a></div><div class="ttdeci">static void hlfmt_hash_passwd(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00211">hlfmt.c:211</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="hlfmt_8c_source.html#l00025">hlfmt_hash_hashcat()</a>, <a class="el" href="hlfmt_8c_source.html#l00211">hlfmt_hash_passwd()</a>, <a class="el" href="hlfmt_8c_source.html#l00114">hlfmt_hash_pwdump()</a>, and <a class="el" href="hlfmt_8c_source.html#l00283">hlfmt_hash_shadow()</a>.</p>

<p class="reference">Referenced by <a class="el" href="hashes_8c_source.html#l00442">hashes_init_stage1()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a89874d1c6907119196e32021b17c68e7_cgraph.gif" border="0" usemap="#hlfmt_8c_a89874d1c6907119196e32021b17c68e7_cgraph" alt=""/></div>
<map name="hlfmt_8c_a89874d1c6907119196e32021b17c68e7_cgraph" id="hlfmt_8c_a89874d1c6907119196e32021b17c68e7_cgraph">
<area shape="rect"  title=" " alt="" coords="5,81,91,108"/>
<area shape="rect"  href="hlfmt_8c.html#ac97115099153951942184c29c3664735" title=" " alt="" coords="139,5,278,32"/>
<area shape="rect"  href="hlfmt_8c.html#a7f6f3eda28936e88abd64a5c6022584f" title=" " alt="" coords="327,107,463,133"/>
<area shape="rect"  href="hlfmt_8c.html#acfd53a9b54fcfd2c036e62fd668fd8f2" title=" " alt="" coords="139,107,279,133"/>
<area shape="rect"  href="hlfmt_8c.html#a8c499fb565a6c7bc960f77d3ba528c9a" title=" " alt="" coords="141,157,277,184"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a89874d1c6907119196e32021b17c68e7_icgraph.gif" border="0" usemap="#hlfmt_8c_a89874d1c6907119196e32021b17c68e7_icgraph" alt=""/></div>
<map name="hlfmt_8c_a89874d1c6907119196e32021b17c68e7_icgraph" id="hlfmt_8c_a89874d1c6907119196e32021b17c68e7_icgraph">
<area shape="rect"  title=" " alt="" coords="639,5,724,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="ac97115099153951942184c29c3664735"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac97115099153951942184c29c3664735">&#9670;&nbsp;</a></span>hlfmt_hash_hashcat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void hlfmt_hash_hashcat </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>hashbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>hashbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00025">25</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  <span class="keyword">const</span> user_options_t *user_options = hashcat_ctx-&gt;user_options;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  <span class="keyword">const</span> hashconfig_t   *hashconfig   = hashcat_ctx-&gt;hashconfig;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  <span class="keywordflow">if</span> (user_options-&gt;username == 0)</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  {</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    *hashbuf_pos = line_buf;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    *hashbuf_len = line_len;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  }</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  <span class="keywordflow">else</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  {</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordtype">char</span> *pos = line_buf;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordtype">int</span>   len = line_len;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; line_len; i++, pos++, len--)</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    {</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;      <span class="keywordflow">if</span> (line_buf[i] == hashconfig-&gt;separator)</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;      {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        pos++;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        len--;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;      }</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    }</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    *hashbuf_pos = pos;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    *hashbuf_len = len;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  }</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00314">hlfmt_hash()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_ac97115099153951942184c29c3664735_icgraph.gif" border="0" usemap="#hlfmt_8c_ac97115099153951942184c29c3664735_icgraph" alt=""/></div>
<map name="hlfmt_8c_ac97115099153951942184c29c3664735_icgraph" id="hlfmt_8c_ac97115099153951942184c29c3664735_icgraph">
<area shape="rect"  title=" " alt="" coords="772,5,911,32"/>
<area shape="rect"  href="hlfmt_8c.html#a89874d1c6907119196e32021b17c68e7" title=" " alt="" coords="639,5,724,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a7f6f3eda28936e88abd64a5c6022584f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f6f3eda28936e88abd64a5c6022584f">&#9670;&nbsp;</a></span>hlfmt_hash_passwd()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void hlfmt_hash_passwd </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>hashbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>hashbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00211">211</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;{</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;  <span class="keywordtype">char</span> *pos = NULL;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;  <span class="keywordtype">int</span>   len = 0;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;  <span class="keywordtype">int</span> sep_cnt = 0;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; line_len; i++)</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;  {</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="keywordflow">if</span> (line_buf[i] == <span class="charliteral">&#39;:&#39;</span>)</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    {</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;      sep_cnt++;</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;      <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    }</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="keywordflow">if</span> (sep_cnt == 1)</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    {</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;      <span class="keywordflow">if</span> (pos == NULL) pos = line_buf + i;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;      len++;</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    }</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;  }</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;  *hashbuf_pos = pos;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  *hashbuf_len = len;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00314">hlfmt_hash()</a>, and <a class="el" href="hlfmt_8c_source.html#l00283">hlfmt_hash_shadow()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a7f6f3eda28936e88abd64a5c6022584f_icgraph.gif" border="0" usemap="#hlfmt_8c_a7f6f3eda28936e88abd64a5c6022584f_icgraph" alt=""/></div>
<map name="hlfmt_8c_a7f6f3eda28936e88abd64a5c6022584f_icgraph" id="hlfmt_8c_a7f6f3eda28936e88abd64a5c6022584f_icgraph">
<area shape="rect"  title=" " alt="" coords="956,5,1092,32"/>
<area shape="rect"  href="hlfmt_8c.html#a89874d1c6907119196e32021b17c68e7" title=" " alt="" coords="639,5,724,32"/>
<area shape="rect"  href="hlfmt_8c.html#a8c499fb565a6c7bc960f77d3ba528c9a" title=" " alt="" coords="772,31,908,57"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="acfd53a9b54fcfd2c036e62fd668fd8f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfd53a9b54fcfd2c036e62fd668fd8f2">&#9670;&nbsp;</a></span>hlfmt_hash_pwdump()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void hlfmt_hash_pwdump </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>hashbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>hashbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00114">114</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;{</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <span class="keyword">const</span> hashconfig_t *hashconfig = hashcat_ctx-&gt;hashconfig;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keywordtype">char</span> *pos = NULL;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  <span class="keywordtype">int</span>   len = 0;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  <span class="keywordtype">int</span> sep_cnt = 0;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; line_len; i++)</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;  {</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keywordflow">if</span> (line_buf[i] == <span class="charliteral">&#39;:&#39;</span>)</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    {</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;      sep_cnt++;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;      <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    }</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordflow">if</span> (hashconfig-&gt;hash_mode == 1000)</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    {</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;      <span class="keywordflow">if</span> (sep_cnt == 3)</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;      {</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <span class="keywordflow">if</span> (pos == NULL) pos = line_buf + i;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        len++;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;      }</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    }</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (hashconfig-&gt;hash_mode == 3000)</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    {</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;      <span class="keywordflow">if</span> (sep_cnt == 2)</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;      {</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keywordflow">if</span> (pos == NULL) pos = line_buf + i;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        len++;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;      }</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    }</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  }</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  *hashbuf_pos = pos;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;  *hashbuf_len = len;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00314">hlfmt_hash()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_acfd53a9b54fcfd2c036e62fd668fd8f2_icgraph.gif" border="0" usemap="#hlfmt_8c_acfd53a9b54fcfd2c036e62fd668fd8f2_icgraph" alt=""/></div>
<map name="hlfmt_8c_acfd53a9b54fcfd2c036e62fd668fd8f2_icgraph" id="hlfmt_8c_acfd53a9b54fcfd2c036e62fd668fd8f2_icgraph">
<area shape="rect"  title=" " alt="" coords="772,5,912,32"/>
<area shape="rect"  href="hlfmt_8c.html#a89874d1c6907119196e32021b17c68e7" title=" " alt="" coords="639,5,724,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a8c499fb565a6c7bc960f77d3ba528c9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c499fb565a6c7bc960f77d3ba528c9a">&#9670;&nbsp;</a></span>hlfmt_hash_shadow()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void hlfmt_hash_shadow </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>hashbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>hashbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00283">283</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;{</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;  <a class="code" href="hlfmt_8c.html#a7f6f3eda28936e88abd64a5c6022584f">hlfmt_hash_passwd</a> (hashcat_ctx, line_buf, line_len, hashbuf_pos, hashbuf_len);</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;}</div><div class="ttc" id="hlfmt_8c_html_a7f6f3eda28936e88abd64a5c6022584f"><div class="ttname"><a href="hlfmt_8c.html#a7f6f3eda28936e88abd64a5c6022584f">hlfmt_hash_passwd</a></div><div class="ttdeci">static void hlfmt_hash_passwd(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **hashbuf_pos, int *hashbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00211">hlfmt.c:211</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="hlfmt_8c_source.html#l00211">hlfmt_hash_passwd()</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00314">hlfmt_hash()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a8c499fb565a6c7bc960f77d3ba528c9a_cgraph.gif" border="0" usemap="#hlfmt_8c_a8c499fb565a6c7bc960f77d3ba528c9a_cgraph" alt=""/></div>
<map name="hlfmt_8c_a8c499fb565a6c7bc960f77d3ba528c9a_cgraph" id="hlfmt_8c_a8c499fb565a6c7bc960f77d3ba528c9a_cgraph">
<area shape="rect"  title=" " alt="" coords="5,5,141,32"/>
<area shape="rect"  href="hlfmt_8c.html#a7f6f3eda28936e88abd64a5c6022584f" title=" " alt="" coords="189,5,325,32"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a8c499fb565a6c7bc960f77d3ba528c9a_icgraph.gif" border="0" usemap="#hlfmt_8c_a8c499fb565a6c7bc960f77d3ba528c9a_icgraph" alt=""/></div>
<map name="hlfmt_8c_a8c499fb565a6c7bc960f77d3ba528c9a_icgraph" id="hlfmt_8c_a8c499fb565a6c7bc960f77d3ba528c9a_icgraph">
<area shape="rect"  title=" " alt="" coords="772,5,908,32"/>
<area shape="rect"  href="hlfmt_8c.html#a89874d1c6907119196e32021b17c68e7" title=" " alt="" coords="639,5,724,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a637d56e649022fd1a4341a47f63d1f08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a637d56e649022fd1a4341a47f63d1f08">&#9670;&nbsp;</a></span>hlfmt_user()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hlfmt_user </td>
          <td>(</td>
          <td class="paramtype">hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>hashfile_format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>userbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>userbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00325">325</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;{</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;  <span class="keywordflow">switch</span> (hashfile_format)</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;  {</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    <span class="keywordflow">case</span> HLFMT_HASHCAT: <a class="code" href="hlfmt_8c.html#a6b359449a18f54515535009c60e14a7f">hlfmt_user_hashcat</a> (hashcat_ctx, line_buf, line_len, userbuf_pos, userbuf_len); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    <span class="keywordflow">case</span> HLFMT_PWDUMP:  <a class="code" href="hlfmt_8c.html#aed2c9a8db6f2c69d23a45c254b22b50e">hlfmt_user_pwdump</a>  (hashcat_ctx, line_buf, line_len, userbuf_pos, userbuf_len); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <span class="keywordflow">case</span> HLFMT_PASSWD:  <a class="code" href="hlfmt_8c.html#a82b46186ed83740b2ae1d779e87e7f0f">hlfmt_user_passwd</a>  (hashcat_ctx, line_buf, line_len, userbuf_pos, userbuf_len); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <span class="keywordflow">case</span> HLFMT_SHADOW:  <a class="code" href="hlfmt_8c.html#adb6b2e43aca94a4a65d73457e54cc5a1">hlfmt_user_shadow</a>  (hashcat_ctx, line_buf, line_len, userbuf_pos, userbuf_len); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;  }</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;}</div><div class="ttc" id="hlfmt_8c_html_adb6b2e43aca94a4a65d73457e54cc5a1"><div class="ttname"><a href="hlfmt_8c.html#adb6b2e43aca94a4a65d73457e54cc5a1">hlfmt_user_shadow</a></div><div class="ttdeci">static void hlfmt_user_shadow(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00288">hlfmt.c:288</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a82b46186ed83740b2ae1d779e87e7f0f"><div class="ttname"><a href="hlfmt_8c.html#a82b46186ed83740b2ae1d779e87e7f0f">hlfmt_user_passwd</a></div><div class="ttdeci">static void hlfmt_user_passwd(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00239">hlfmt.c:239</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a6b359449a18f54515535009c60e14a7f"><div class="ttname"><a href="hlfmt_8c.html#a6b359449a18f54515535009c60e14a7f">hlfmt_user_hashcat</a></div><div class="ttdeci">static void hlfmt_user_hashcat(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00057">hlfmt.c:57</a></div></div>
<div class="ttc" id="hlfmt_8c_html_aed2c9a8db6f2c69d23a45c254b22b50e"><div class="ttname"><a href="hlfmt_8c.html#aed2c9a8db6f2c69d23a45c254b22b50e">hlfmt_user_pwdump</a></div><div class="ttdeci">static void hlfmt_user_pwdump(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00156">hlfmt.c:156</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="hlfmt_8c_source.html#l00057">hlfmt_user_hashcat()</a>, <a class="el" href="hlfmt_8c_source.html#l00239">hlfmt_user_passwd()</a>, <a class="el" href="hlfmt_8c_source.html#l00156">hlfmt_user_pwdump()</a>, and <a class="el" href="hlfmt_8c_source.html#l00288">hlfmt_user_shadow()</a>.</p>

<p class="reference">Referenced by <a class="el" href="hashes_8c_source.html#l00442">hashes_init_stage1()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a637d56e649022fd1a4341a47f63d1f08_cgraph.gif" border="0" usemap="#hlfmt_8c_a637d56e649022fd1a4341a47f63d1f08_cgraph" alt=""/></div>
<map name="hlfmt_8c_a637d56e649022fd1a4341a47f63d1f08_cgraph" id="hlfmt_8c_a637d56e649022fd1a4341a47f63d1f08_cgraph">
<area shape="rect"  title=" " alt="" coords="5,81,88,108"/>
<area shape="rect"  href="hlfmt_8c.html#a6b359449a18f54515535009c60e14a7f" title=" " alt="" coords="137,5,272,32"/>
<area shape="rect"  href="hlfmt_8c.html#a82b46186ed83740b2ae1d779e87e7f0f" title=" " alt="" coords="321,107,455,133"/>
<area shape="rect"  href="hlfmt_8c.html#aed2c9a8db6f2c69d23a45c254b22b50e" title=" " alt="" coords="136,107,273,133"/>
<area shape="rect"  href="hlfmt_8c.html#adb6b2e43aca94a4a65d73457e54cc5a1" title=" " alt="" coords="138,157,271,184"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a637d56e649022fd1a4341a47f63d1f08_icgraph.gif" border="0" usemap="#hlfmt_8c_a637d56e649022fd1a4341a47f63d1f08_icgraph" alt=""/></div>
<map name="hlfmt_8c_a637d56e649022fd1a4341a47f63d1f08_icgraph" id="hlfmt_8c_a637d56e649022fd1a4341a47f63d1f08_icgraph">
<area shape="rect"  title=" " alt="" coords="639,5,721,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a6b359449a18f54515535009c60e14a7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b359449a18f54515535009c60e14a7f">&#9670;&nbsp;</a></span>hlfmt_user_hashcat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void hlfmt_user_hashcat </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>userbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>userbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00057">57</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="keyword">const</span> hashconfig_t *hashconfig = hashcat_ctx-&gt;hashconfig;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  <span class="keywordtype">char</span> *pos = NULL;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="keywordtype">int</span>   len = 0;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keywordtype">int</span> sep_cnt = 0;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; line_len; i++)</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  {</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordflow">if</span> (line_buf[i] == hashconfig-&gt;separator)</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    {</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;      sep_cnt++;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;      <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    }</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordflow">if</span> (sep_cnt == 0)</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    {</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;      <span class="keywordflow">if</span> (pos == NULL) pos = line_buf + i;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;      len++;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  }</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  *userbuf_pos = pos;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  *userbuf_len = len;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00325">hlfmt_user()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a6b359449a18f54515535009c60e14a7f_icgraph.gif" border="0" usemap="#hlfmt_8c_a6b359449a18f54515535009c60e14a7f_icgraph" alt=""/></div>
<map name="hlfmt_8c_a6b359449a18f54515535009c60e14a7f_icgraph" id="hlfmt_8c_a6b359449a18f54515535009c60e14a7f_icgraph">
<area shape="rect"  title=" " alt="" coords="769,5,904,32"/>
<area shape="rect"  href="hlfmt_8c.html#a637d56e649022fd1a4341a47f63d1f08" title=" " alt="" coords="639,5,721,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a82b46186ed83740b2ae1d779e87e7f0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82b46186ed83740b2ae1d779e87e7f0f">&#9670;&nbsp;</a></span>hlfmt_user_passwd()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void hlfmt_user_passwd </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>userbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>userbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00239">239</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;{</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;  <span class="keywordtype">char</span> *pos = NULL;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;  <span class="keywordtype">int</span>   len = 0;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;  <span class="keywordtype">int</span> sep_cnt = 0;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; line_len; i++)</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;  {</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <span class="keywordflow">if</span> (line_buf[i] == <span class="charliteral">&#39;:&#39;</span>)</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    {</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;      sep_cnt++;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;      <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    }</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    <span class="keywordflow">if</span> (sep_cnt == 0)</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    {</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;      <span class="keywordflow">if</span> (pos == NULL) pos = line_buf + i;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;      len++;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    }</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;  }</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;  *userbuf_pos = pos;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;  *userbuf_len = len;</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00325">hlfmt_user()</a>, and <a class="el" href="hlfmt_8c_source.html#l00288">hlfmt_user_shadow()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_a82b46186ed83740b2ae1d779e87e7f0f_icgraph.gif" border="0" usemap="#hlfmt_8c_a82b46186ed83740b2ae1d779e87e7f0f_icgraph" alt=""/></div>
<map name="hlfmt_8c_a82b46186ed83740b2ae1d779e87e7f0f_icgraph" id="hlfmt_8c_a82b46186ed83740b2ae1d779e87e7f0f_icgraph">
<area shape="rect"  title=" " alt="" coords="951,5,1084,32"/>
<area shape="rect"  href="hlfmt_8c.html#a637d56e649022fd1a4341a47f63d1f08" title=" " alt="" coords="639,5,721,32"/>
<area shape="rect"  href="hlfmt_8c.html#adb6b2e43aca94a4a65d73457e54cc5a1" title=" " alt="" coords="769,31,903,57"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="aed2c9a8db6f2c69d23a45c254b22b50e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed2c9a8db6f2c69d23a45c254b22b50e">&#9670;&nbsp;</a></span>hlfmt_user_pwdump()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void hlfmt_user_pwdump </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>userbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>userbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00156">156</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;{</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;  <span class="keywordtype">char</span> *pos = NULL;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;  <span class="keywordtype">int</span>   len = 0;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  <span class="keywordtype">int</span> sep_cnt = 0;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; line_len; i++)</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  {</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keywordflow">if</span> (line_buf[i] == <span class="charliteral">&#39;:&#39;</span>)</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    {</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;      sep_cnt++;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;      <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    }</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keywordflow">if</span> (sep_cnt == 0)</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    {</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;      <span class="keywordflow">if</span> (pos == NULL) pos = line_buf + i;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;      len++;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    }</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;  }</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;  *userbuf_pos = pos;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;  *userbuf_len = len;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00325">hlfmt_user()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_aed2c9a8db6f2c69d23a45c254b22b50e_icgraph.gif" border="0" usemap="#hlfmt_8c_aed2c9a8db6f2c69d23a45c254b22b50e_icgraph" alt=""/></div>
<map name="hlfmt_8c_aed2c9a8db6f2c69d23a45c254b22b50e_icgraph" id="hlfmt_8c_aed2c9a8db6f2c69d23a45c254b22b50e_icgraph">
<area shape="rect"  title=" " alt="" coords="769,5,907,32"/>
<area shape="rect"  href="hlfmt_8c.html#a637d56e649022fd1a4341a47f63d1f08" title=" " alt="" coords="639,5,721,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="adb6b2e43aca94a4a65d73457e54cc5a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb6b2e43aca94a4a65d73457e54cc5a1">&#9670;&nbsp;</a></span>hlfmt_user_shadow()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void hlfmt_user_shadow </td>
          <td>(</td>
          <td class="paramtype">MAYBE_UNUSED hashcat_ctx_t *&#160;</td>
          <td class="paramname"><em>hashcat_ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>line_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>userbuf_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>userbuf_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00288">288</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;{</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;  <a class="code" href="hlfmt_8c.html#a82b46186ed83740b2ae1d779e87e7f0f">hlfmt_user_passwd</a> (hashcat_ctx, line_buf, line_len, userbuf_pos, userbuf_len);</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;}</div><div class="ttc" id="hlfmt_8c_html_a82b46186ed83740b2ae1d779e87e7f0f"><div class="ttname"><a href="hlfmt_8c.html#a82b46186ed83740b2ae1d779e87e7f0f">hlfmt_user_passwd</a></div><div class="ttdeci">static void hlfmt_user_passwd(MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, char *line_buf, int line_len, char **userbuf_pos, int *userbuf_len)</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00239">hlfmt.c:239</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="hlfmt_8c_source.html#l00239">hlfmt_user_passwd()</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00325">hlfmt_user()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_adb6b2e43aca94a4a65d73457e54cc5a1_cgraph.gif" border="0" usemap="#hlfmt_8c_adb6b2e43aca94a4a65d73457e54cc5a1_cgraph" alt=""/></div>
<map name="hlfmt_8c_adb6b2e43aca94a4a65d73457e54cc5a1_cgraph" id="hlfmt_8c_adb6b2e43aca94a4a65d73457e54cc5a1_cgraph">
<area shape="rect"  title=" " alt="" coords="5,5,139,32"/>
<area shape="rect"  href="hlfmt_8c.html#a82b46186ed83740b2ae1d779e87e7f0f" title=" " alt="" coords="187,5,320,32"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_adb6b2e43aca94a4a65d73457e54cc5a1_icgraph.gif" border="0" usemap="#hlfmt_8c_adb6b2e43aca94a4a65d73457e54cc5a1_icgraph" alt=""/></div>
<map name="hlfmt_8c_adb6b2e43aca94a4a65d73457e54cc5a1_icgraph" id="hlfmt_8c_adb6b2e43aca94a4a65d73457e54cc5a1_icgraph">
<area shape="rect"  title=" " alt="" coords="769,5,903,32"/>
<area shape="rect"  href="hlfmt_8c.html#a637d56e649022fd1a4341a47f63d1f08" title=" " alt="" coords="639,5,721,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="ad678cb550432d8054dd4ea068986ffb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad678cb550432d8054dd4ea068986ffb0">&#9670;&nbsp;</a></span>strhlfmt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* strhlfmt </td>
          <td>(</td>
          <td class="paramtype">const u32&#160;</td>
          <td class="paramname"><em>hashfile_format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00295">295</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;{</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;  <span class="keywordflow">switch</span> (hashfile_format)</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;  {</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <span class="keywordflow">case</span> HLFMT_HASHCAT:  <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#af2f2d9ece5564e0886e0961219fd4cae">HLFMT_TEXT_HASHCAT</a>);</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <span class="keywordflow">case</span> HLFMT_PWDUMP:   <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#aa265e7d2d5dfb8108d2ddad5706be92a">HLFMT_TEXT_PWDUMP</a>);</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <span class="keywordflow">case</span> HLFMT_PASSWD:   <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#a55ed1b269f4bb48724c05dd34840e565">HLFMT_TEXT_PASSWD</a>);</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <span class="keywordflow">case</span> HLFMT_SHADOW:   <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#ab0a96583f2442346bc57cb0207d5effa">HLFMT_TEXT_SHADOW</a>);</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    <span class="keywordflow">case</span> HLFMT_DCC:      <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#a85a7a2915fc210bcad12a379e6978458">HLFMT_TEXT_DCC</a>);</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <span class="keywordflow">case</span> HLFMT_DCC2:     <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#a5852bcf21ecf96bc1a5655217631a4a5">HLFMT_TEXT_DCC2</a>);</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <span class="keywordflow">case</span> HLFMT_NETNTLM1: <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#aaeac959653fda3161bc9df8e7d9cc916">HLFMT_TEXT_NETNTLM1</a>);</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    <span class="keywordflow">case</span> HLFMT_NETNTLM2: <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#a41ea1aa4f4d7b762aebf527d624b52e5">HLFMT_TEXT_NETNTLM2</a>);</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="keywordflow">case</span> HLFMT_NSLDAP:   <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#a50b49f2997a098839896f77216557cc4">HLFMT_TEXT_NSLDAP</a>);</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    <span class="keywordflow">case</span> HLFMT_NSLDAPS:  <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <a class="code" href="hlfmt_8c.html#a9d889115edb7dded70942e4f00fe9a1d">HLFMT_TEXT_NSLDAPS</a>);</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;  }</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;  <span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;Unknown&quot;</span>);</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;}</div><div class="ttc" id="hlfmt_8c_html_a41ea1aa4f4d7b762aebf527d624b52e5"><div class="ttname"><a href="hlfmt_8c.html#a41ea1aa4f4d7b762aebf527d624b52e5">HLFMT_TEXT_NETNTLM2</a></div><div class="ttdeci">static const char HLFMT_TEXT_NETNTLM2[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00019">hlfmt.c:19</a></div></div>
<div class="ttc" id="hlfmt_8c_html_af2f2d9ece5564e0886e0961219fd4cae"><div class="ttname"><a href="hlfmt_8c.html#af2f2d9ece5564e0886e0961219fd4cae">HLFMT_TEXT_HASHCAT</a></div><div class="ttdeci">static const char HLFMT_TEXT_HASHCAT[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00012">hlfmt.c:12</a></div></div>
<div class="ttc" id="hlfmt_8c_html_aaeac959653fda3161bc9df8e7d9cc916"><div class="ttname"><a href="hlfmt_8c.html#aaeac959653fda3161bc9df8e7d9cc916">HLFMT_TEXT_NETNTLM1</a></div><div class="ttdeci">static const char HLFMT_TEXT_NETNTLM1[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00018">hlfmt.c:18</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a9d889115edb7dded70942e4f00fe9a1d"><div class="ttname"><a href="hlfmt_8c.html#a9d889115edb7dded70942e4f00fe9a1d">HLFMT_TEXT_NSLDAPS</a></div><div class="ttdeci">static const char HLFMT_TEXT_NSLDAPS[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00021">hlfmt.c:21</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a5852bcf21ecf96bc1a5655217631a4a5"><div class="ttname"><a href="hlfmt_8c.html#a5852bcf21ecf96bc1a5655217631a4a5">HLFMT_TEXT_DCC2</a></div><div class="ttdeci">static const char HLFMT_TEXT_DCC2[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00017">hlfmt.c:17</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a85a7a2915fc210bcad12a379e6978458"><div class="ttname"><a href="hlfmt_8c.html#a85a7a2915fc210bcad12a379e6978458">HLFMT_TEXT_DCC</a></div><div class="ttdeci">static const char HLFMT_TEXT_DCC[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00016">hlfmt.c:16</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a50b49f2997a098839896f77216557cc4"><div class="ttname"><a href="hlfmt_8c.html#a50b49f2997a098839896f77216557cc4">HLFMT_TEXT_NSLDAP</a></div><div class="ttdeci">static const char HLFMT_TEXT_NSLDAP[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00020">hlfmt.c:20</a></div></div>
<div class="ttc" id="hlfmt_8c_html_aa265e7d2d5dfb8108d2ddad5706be92a"><div class="ttname"><a href="hlfmt_8c.html#aa265e7d2d5dfb8108d2ddad5706be92a">HLFMT_TEXT_PWDUMP</a></div><div class="ttdeci">static const char HLFMT_TEXT_PWDUMP[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00013">hlfmt.c:13</a></div></div>
<div class="ttc" id="hlfmt_8c_html_ab0a96583f2442346bc57cb0207d5effa"><div class="ttname"><a href="hlfmt_8c.html#ab0a96583f2442346bc57cb0207d5effa">HLFMT_TEXT_SHADOW</a></div><div class="ttdeci">static const char HLFMT_TEXT_SHADOW[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00015">hlfmt.c:15</a></div></div>
<div class="ttc" id="hlfmt_8c_html_a55ed1b269f4bb48724c05dd34840e565"><div class="ttname"><a href="hlfmt_8c.html#a55ed1b269f4bb48724c05dd34840e565">HLFMT_TEXT_PASSWD</a></div><div class="ttdeci">static const char HLFMT_TEXT_PASSWD[]</div><div class="ttdef"><b>Definition:</b> <a href="hlfmt_8c_source.html#l00014">hlfmt.c:14</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="hlfmt_8c_source.html#l00016">HLFMT_TEXT_DCC</a>, <a class="el" href="hlfmt_8c_source.html#l00017">HLFMT_TEXT_DCC2</a>, <a class="el" href="hlfmt_8c_source.html#l00012">HLFMT_TEXT_HASHCAT</a>, <a class="el" href="hlfmt_8c_source.html#l00018">HLFMT_TEXT_NETNTLM1</a>, <a class="el" href="hlfmt_8c_source.html#l00019">HLFMT_TEXT_NETNTLM2</a>, <a class="el" href="hlfmt_8c_source.html#l00020">HLFMT_TEXT_NSLDAP</a>, <a class="el" href="hlfmt_8c_source.html#l00021">HLFMT_TEXT_NSLDAPS</a>, <a class="el" href="hlfmt_8c_source.html#l00014">HLFMT_TEXT_PASSWD</a>, <a class="el" href="hlfmt_8c_source.html#l00013">HLFMT_TEXT_PWDUMP</a>, and <a class="el" href="hlfmt_8c_source.html#l00015">HLFMT_TEXT_SHADOW</a>.</p>

<p class="reference">Referenced by <a class="el" href="hashes_8c_source.html#l00442">hashes_init_stage1()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hlfmt_8c_ad678cb550432d8054dd4ea068986ffb0_icgraph.gif" border="0" usemap="#hlfmt_8c_ad678cb550432d8054dd4ea068986ffb0_icgraph" alt=""/></div>
<map name="hlfmt_8c_ad678cb550432d8054dd4ea068986ffb0_icgraph" id="hlfmt_8c_ad678cb550432d8054dd4ea068986ffb0_icgraph">
<area shape="rect"  title=" " alt="" coords="639,5,704,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a85a7a2915fc210bcad12a379e6978458"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85a7a2915fc210bcad12a379e6978458">&#9670;&nbsp;</a></span>HLFMT_TEXT_DCC</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_DCC[] = &quot;DCC&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00016">16</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
<a id="a5852bcf21ecf96bc1a5655217631a4a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5852bcf21ecf96bc1a5655217631a4a5">&#9670;&nbsp;</a></span>HLFMT_TEXT_DCC2</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_DCC2[] = &quot;DCC 2&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00017">17</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
<a id="af2f2d9ece5564e0886e0961219fd4cae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2f2d9ece5564e0886e0961219fd4cae">&#9670;&nbsp;</a></span>HLFMT_TEXT_HASHCAT</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_HASHCAT[] = &quot;native hashcat&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Author......: See docs/credits.txt License.....: MIT </p>

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00012">12</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
<a id="aaeac959653fda3161bc9df8e7d9cc916"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeac959653fda3161bc9df8e7d9cc916">&#9670;&nbsp;</a></span>HLFMT_TEXT_NETNTLM1</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_NETNTLM1[] = &quot;NetNTLMv1&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00018">18</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
<a id="a41ea1aa4f4d7b762aebf527d624b52e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41ea1aa4f4d7b762aebf527d624b52e5">&#9670;&nbsp;</a></span>HLFMT_TEXT_NETNTLM2</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_NETNTLM2[] = &quot;NetNTLMv2&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00019">19</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
<a id="a50b49f2997a098839896f77216557cc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50b49f2997a098839896f77216557cc4">&#9670;&nbsp;</a></span>HLFMT_TEXT_NSLDAP</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_NSLDAP[] = &quot;nsldap&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00020">20</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
<a id="a9d889115edb7dded70942e4f00fe9a1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d889115edb7dded70942e4f00fe9a1d">&#9670;&nbsp;</a></span>HLFMT_TEXT_NSLDAPS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_NSLDAPS[] = &quot;nsldaps&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00021">21</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
<a id="a55ed1b269f4bb48724c05dd34840e565"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55ed1b269f4bb48724c05dd34840e565">&#9670;&nbsp;</a></span>HLFMT_TEXT_PASSWD</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_PASSWD[] = &quot;passwd&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00014">14</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
<a id="aa265e7d2d5dfb8108d2ddad5706be92a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa265e7d2d5dfb8108d2ddad5706be92a">&#9670;&nbsp;</a></span>HLFMT_TEXT_PWDUMP</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_PWDUMP[] = &quot;pwdump&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00013">13</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
<a id="ab0a96583f2442346bc57cb0207d5effa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0a96583f2442346bc57cb0207d5effa">&#9670;&nbsp;</a></span>HLFMT_TEXT_SHADOW</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char HLFMT_TEXT_SHADOW[] = &quot;shadow&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hlfmt_8c_source.html#l00015">15</a> of file <a class="el" href="hlfmt_8c_source.html">hlfmt.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="hlfmt_8c_source.html#l00295">strhlfmt()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
